package com.wy.framework.actions.user;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import org.apache.commons.lang.StringUtils;
import org.apache.struts2.ServletActionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.Action;
import com.wy.framework.constants.RtnCodeConstant;
import com.wy.framework.exceptions.ServiceException;
import com.wy.framework.actions.AbstractBaseAction;
import com.wy.framework.services.user.UserManageService;

/**
 * 项目名称：openportal
 * 类名称：DeleteUserAction
 * 类描述：删除用户控制器
 * 创建人：张旭星
 * 创建时间：2015-12-28 下午8:05:51
 * 修改人：张旭星
 * 修改时间：2015-12-28 下午8:05:51
 * 版本信息：@version 1.0
 * Copyright (c) 2015万雍科技（上海）有限公司-版权所有  
 * 修改备注：
 * @version 
 */
public class DeleteUserAction extends AbstractBaseAction {
	private static Logger logger = LoggerFactory.getLogger(DeleteUserAction.class);

	@Autowired
	private UserManageService userManageService;

	public String delUser() throws ServiceException {
		rspCode = userManageService.deleteUser(ServletActionContext.getRequest().getParameter("userId"));
		return "success";
	}

}
